<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-menu default-active='active' mode='horizontal' class='menu-unit'>
      <el-menu-item v-for='item in Container1' :index="'商机管理'===item.name?'active':'default'">
        <el-link @click="gotoMenu(item.url)" :type="'商机管理'===item.name?'primary':'default'">{{item.page_desc||item.name}}</el-link>
      </el-menu-item>
    </el-menu>
    <table cellpadding="4" cellspacing="0" border="0" width="100%">
      <tr>
        <td class="containerBack">
          <el-row>
            <el-col :span='22' :xs='24'>
              <el-form ref="form" :model="part" :rules="rules" label-width="100px" id="mvcfm">
                <el-button @click="gotoPage('/crm/sale/contacts/ContactsBusinessOpportAssemblyUp?'+vueparams+'')" type='success' size="mini"><i class='fa fa-edit'></i>修改</el-button>
                <el-button @click="gotoPage('/crm/sale/contacts/ContactsBusinessOpportDet?'+vueparams+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回</el-button>
                <div class="form-unit">
                  <span class="mvc-title-left"> 组件明细 </span>
                </div>
                <div>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="组成部分描述" prop="">
                        {{part.part_des}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="分配到" prop="">
                        {{part.part_person}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="组成部分" prop="">
                        {{empty}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="24">
                      <el-form-item label="额外的信息" prop="">
                        <div style="white-space: pre-wrap;">{{part.part_extrades}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="信息来源" prop="">
                        {{part.part_origin}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="高估    CNY" prop="">
                        {{part.part_max}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="低估    CNY" prop="">
                        {{part.part_min}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="最佳预计    CNY" prop="">
                        {{part.part_opt}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="关闭可能性(%)" prop="">
                        {{part.part_clised}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="估计关闭日期" prop="">
                        {{part.part_closedate}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="估计期限" prop="">
                        {{part.part_limit}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      {{empty}}
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="当前状态" prop="">
                        {{empty}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="估计的佣金(%)" prop="">
                        {{part.part_com}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="提醒描述" prop="">
                        {{part.part_reminddes}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="12">
                      <el-form-item label="提醒日期" prop="">
                        {{part.part_reminddate}}
                      </el-form-item>
                    </el-col>
                  </el-row>
                </div>
                <el-button @click="gotoPage('/crm/sale/contacts/ContactsBusinessOpportAssemblyUp?'+vueparams+'')" type='success' size="mini"><i class='fa fa-edit'></i>修改</el-button>
                <el-button @click="gotoPage('/crm/sale/contacts/ContactsBusinessOpportDet?'+vueparams+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回</el-button>
              </el-form>
            </el-col>
            <el-col :span='2' :xs='24'>
              <el-menu default-active='active' class='menu-unit'>
                <el-menu-item v-for='item in Container1'>
                  <el-link @click="gotoMenu(item.url)" :type="'联系人'===item.name?'primary':'default'">{{item.page_desc||item.name}}</el-link>
                </el-menu-item>
              </el-menu>
            </el-col>
          </el-row>
        </td>
      </tr>
    </table>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'ContactsBusinessOpportAssemblyDet',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        part: {
          part_des: null,
          part_person: null,
          part_extrades: null,
          part_origin: null,
          part_max: null,
          part_min: null,
          part_opt: null,
          part_clised: null,
          part_closedate: null,
          part_limit: null,
          part_com: null,
          part_reminddes: null,
          part_reminddate: null,
        },
        loading: false,
        Container1: null,
        Container1: null,
        rules: {}
      }
    },
    created() {
      this.getData();
      this.loadContainerMenu({
        pid: "14ED91704E794C43A973E8BEFF724C15",
        name: "客户联系人右菜单",
        selected: "商机管理"
      }, 'Container1', this.vueparams);
      this.loadContainerMenu({
        pid: "80299289AF2443B18EA545A4C0C37170",
        name: "客户管理右菜单",
        selected: "联系人"
      }, 'Container1', this.vueparams);
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/crm/sale/contacts/ContactsBusinessOpport/contactsBusinessOpportAssemblyDet?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
